package com.yayan.xh.dao;

import java.util.List;
import java.util.Map;

import com.yayan.xh.bean.MatchBean;

public interface IMatchDao {
	
	/**
	 * 查询所有赛事包含照片
	 * @param map
	 * @return
	 */
	List<Map<String, Object>> getMatchList(Map<String, String> map) throws Exception;
	
	/**
	 * 通过赛事编号查询
	 * @param map
	 * @return
	 */
	List<Map<String, Object>> getMatchListByMatchId(Map<String, String> map) throws Exception;
	
	/**
	 * 添加赛事
	 * @param map
	 * @return
	 */
	int saveMatch(Map<String, String> map) throws Exception;
	
	/**
	 * 后台查询所有赛事
	 * @param map
	 * @return
	 * @throws Exception
	 */
	List<MatchBean> getMatchListBack(Map<String, String> map) throws Exception;
	
	/**
	 * 后台通过id查询赛事
	 * @param map
	 * @return
	 * @throws Exception
	 */
	MatchBean getMatchByMatchIdBack(Map<String, String> map) throws Exception;
	
	/**
	 * 修改赛事信息
	 * @param map
	 * @return
	 * @throws Exception
	 */
	boolean modifyMatch(Map<String, String> map) throws Exception;
}
